package com.bit.blog;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {
   public static void main(String[] args){
       Date date=new Date();
       System.out.println("data:"+date);
       SimpleDateFormat dateFormat=new SimpleDateFormat("yyyy-MM-dd");
       String format=dateFormat.format(date);
       System.out.println("format："+format);

   }
}
